package cn.bgs.dao;

import cn.bgs.pojo.ClassRoom;

import cn.bgs.pojo.VoAll.ClassRoomVo;
import cn.bgs.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author Mr.JIA
 * @DATE 2021/7/26 0026 9:39
 * @PROJECT_NAME mybatis_phoenix
 * @PACKAGE_NAME cn.bgs.dao
 */
public interface RoomMapper {


    //全查
    List<Student> findAllRoom(ClassRoomVo vo);

    //删除 room
    Integer delRoom(int pkId);

    //添加
    Integer addRoom(ClassRoom ro);


    //修改
    Integer updateRoom(ClassRoom cc);

    //查询 区域 area
    List<ClassRoom> findArea();
    //查询 楼号 buildingNo
    List<ClassRoom> findBuildingNo(String buildingNo);
    //查询 楼层 buildingFloor
    List<ClassRoom> findBuildingFloor(@Param("floor") String floor,@Param("no") String no);
}
